package chap03;

class Person {
    int age;
    private int medal_ALL = 88;

    public void shot() {
        System.out.println("parameter");
    }

    public static void main(String[] args) {
        Person person = new Person();
        person.shot();
        System.out.println(person.medal_ALL);
        Person1 person2 = new Person1();
        System.out.println("���Բ�ͬȨ�޵��඼��һ��:" + person2.test);
        System.exit(0);
    }
}

class Person1 {
    public int test = 2;
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int value) {
        if (value > 0) {
            age = value;
        }
    }

    public Person1() {
        System.out.println("����");
    }

    public Person1(int n, int a) {
        System.out.println("ʹ������������");
    }

}
